const mix = require('laravel-mix');
mix.webpackConfig({
    stats: {
        children: true
    },
    // output: {
    //     publicPath: '/',
    //     filename: '[name].[chunkhash:10].js',
    //     chunkFilename : '[name].[chunkhash:10].js'
    // }
});
if (mix.inProduction()) {
    mix.version();
}
mix.disableNotifications();
mix.options({
    processCssUrls: false
});

mix.setPublicPath('./');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.js('./index.js', './js/').vue({version: 2});
mix.sass('./scss/index.scss', './css');